package com.ubing.boot.notesforjava.domel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ubing.boot.notesforjava.utils.SensitiveImpl;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ubing
 * @since 2023-02-20
 */
@TableName("note_info")
@Data
@ToString
public class NoteInfo implements Serializable, SensitiveImpl {


    private static final long serialVersionUID = 1L;

      /**
     * 笔记id
     */
      @TableId
        private String noteId;

      /**
     * 用户id
     */
      private String userId;

      /**
     * 笔记标题
     */
      private String noteTitle;

      /**
     * 笔记详情
     */
      private String noteDetail;

      /**
     * 笔记渲染详情
     */
      private String noteDetailRender;

      /**
     * 创建时间
     */
      private LocalDateTime createTime;

      /**
     * 更新时间
     */
      private LocalDateTime updateTime;

      /**
       * 用户头像
       */
      @TableField(exist = false)
      private String userAvatar;



}
